﻿using System.Collections.Generic;
using FlowCanvas;
using FlowCanvas.Nodes;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class DestroyMultGameObjects : CallableActionNode<GameObject,GameObject,GameObject,GameObject,GameObject,GameObject>
    {
        public override void Invoke(GameObject a, GameObject b, GameObject c, GameObject d, GameObject e, GameObject f)
        {
            if(a) GameObject.DestroyImmediate(a);
            if(b) GameObject.DestroyImmediate(b);
            if(c) GameObject.DestroyImmediate(c);
            if(d) GameObject.DestroyImmediate(d);
            if(e) GameObject.DestroyImmediate(e);
            if(f) GameObject.DestroyImmediate(f);
        }
    }
}